﻿using NATS.Client.Core;

namespace Acl.Messages.Impl
{
    internal readonly struct NatsSubscription : IAsyncDisposable
    {
        private readonly IAsyncDisposable _sub;

        public NatsSubscription(IAsyncDisposable sub) => _sub = sub;

        public ValueTask DisposeAsync() => _sub.DisposeAsync();
    }
}